package oop7;

import oop6.pet2.Dog;

/**
 * @author oldliu
 * @since 1.0
 */
public class PetTest7 {
    public static void main(String[] args) {
        Dog d=new Dog("大黄",3,"公",100,100,"田园犬");
        Dog d1=d;
        System.out.println(d1==d);
        System.out.println(">>>>>>>>>>>>>>>>>>>>>");
       Dog d2=new Dog("大黄",3,"母",100,100,"田园犬");
        System.out.println(d==d2);
        System.out.println("对象的比较："+d.equals(d2));

        System.out.println("对象的比较2："+d2.equals(d));
    }
}
